package org.jiuling.email.config;

/**
 * 电子邮件配置
 * @author 紫灵
 * @date 2022年08月05日 00时23分29秒
 */
public class EmailConfig {

    /** 主机名 */
    private String host;
    /** 电子邮件名称 */
    private String user;
    /** 密码 */
    private String password;
    /** 端口 */
    private Integer post;
    /** 是否需要用户认证 */
    private Boolean auth;
    /** 是否启用TSL加密 */
    private Boolean enable;
    /** 协议 */
    private String protocol;
    /** 调试模式 */
    private Boolean debug;

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getPost() {
        return post;
    }

    public void setPost(Integer post) {
        this.post = post;
    }

    public Boolean getAuth() {
        return auth;
    }

    public void setAuth(Boolean auth) {
        this.auth = auth;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        this.protocol = protocol;
    }

    public String getDebug() {
        return debug ? "true" : "false";
    }

    public void setDebug(Boolean debug) {
        this.debug = debug;
    }
}
